package cn.ibdsr.human.db.mapper;

import cn.ibdsr.human.db.model.CompanyRecommend;
import cn.ibdsr.human.transfer.companyrecommend.CompanyRecommendDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 推荐企业信息表 Mapper 接口
 * </p>
 *
 * @author cdl
 * @since 2021-08-12
 */
public interface CompanyRecommendMapper extends BaseMapper<CompanyRecommend> {
    /**
     * 获取企业列表
     * @param page
     * @param name
     * @param isPublish
     * @return
     */
    List<CompanyRecommendDTO> getCompaniesList(@Param("page")  Page<CompanyRecommendDTO> page,
                                               @Param("name")   String name,
                                               @Param("isPublish")   Boolean isPublish);

    List<CompanyRecommendDTO> getLatestCompanies();
}
